import BasicLayout from '@/layouts/BasicLayout/index.vue'
import { RouteRecordRaw } from 'vue-router'

// 组件路由
export const components: Array<RouteRecordRaw> = [
  {
    path: '/components',
    redirect: '/components/table',
    component: BasicLayout,
    meta: {
      title: '组件功能演示',
      isShow: true,
      icon: 'GoldFilled'
    },
    children: [
      {
        path: '/components/editor',
        name: 'CEditor',
        component: () => import('@/views/components/editor/index.vue'),
        meta: {
          title: '富文本编辑器',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      },
      {
        path: '/components/mork-down',
        name: 'CMorkDown',
        component: () => import('@/views/components/mork-down/index.vue'),
        meta: {
          title: 'MorkDow文件展示',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      }
    ]
  }
]
